package com.fmdj.customer.feign;

import com.fmdj.common.util.CommonResult;
import com.fmdj.customer.controller.form.SearchDriverBriefInfoForm;
import com.fmdj.customer.controller.form.SearchDriverOpenIdForm;
import com.fmdj.customer.controller.form.TransferForm;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
@FeignClient(name = "fmdj-dr")
public interface DrServiceApi {

    @PostMapping("/driver/searchDriverBriefInfo")
    CommonResult searchDriverBriefInfo(@RequestBody @Valid SearchDriverBriefInfoForm form);

    @PostMapping("/driver/searchDriverOpenId")
    CommonResult searchDriverOpenId(@RequestBody @Valid SearchDriverOpenIdForm form);

    @PostMapping("/wallet/income/transfer")
    CommonResult transfer(@RequestBody @Valid TransferForm form);
}
